import Vue from 'vue'
import Router from 'vue-router'
import Home from "../components/Home.vue";
import Register from "../components/Register.vue";
import Login from "../components/Login.vue";
import MakeMy from "../components/MakeMy.vue";
import UserHealthPut from "../components/UserHealthPut.vue";
import userHManager from "../components/UserHManager.vue";
import HealthValue from "../components/HealthValue.vue";
import User from "../components/User.vue";
import Hello from "../components/Hello.vue";
import SportKonlage from "../components/SportKonlage.vue";
import SportDetail from "../components/SportDetail.vue";
import Test from "../components/Test.vue";
import AvatarUpload from "../components/AvatarUpload.vue";





Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    }, {
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      path: '/home',
      name: 'Home',
      component: Home,
      children:[
        {
          path: '/makemy',
          name: 'MakeMy',
          component: MakeMy,
        }, {
          path: '/userhealthput',
          name: 'UserHealthPut',
          component: UserHealthPut,
          children:[
            {
              path: '/avatarupload',
              name: 'AvatarUpload',
              component: AvatarUpload,
            }
          ]
        }, {
          path: '/userhmanager',
          name: 'userHManager',
          component: userHManager,
        }, {
          path: '/healthvalue',
          name: 'HealthValue',
          component: HealthValue,
        }, {
          path: '/user',
          name: 'User',
          component: User,
        },{
          path: '/hello',
          name: 'Hello',
          component: Hello,
        },{
          path: '/sportknlage',
          name: 'SportKonlage',
          component: SportKonlage,
        },{
          path: '/sportdetail',
          name: 'SportDetail',
          component: SportDetail,
        },{
          path: '/test',
          name: 'Test',
          component: Test,
        },
      ]

    }

  ]
})
